//
//  JGMeHeadView.m
//  JGRider
//
//  Created by 单启志 on 2018/1/26.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import "JGMeHeadView.h"


@interface JGMeHeadView()
@property (weak, nonatomic) IBOutlet UIImageView *iconImgV;//头像

@property (weak, nonatomic) IBOutlet UILabel *nickNameLab;//昵称


@end

@implementation JGMeHeadView

-(void)awakeFromNib{

    [super awakeFromNib];


}

//我的订单 查看全部
- (IBAction)onMyOrderBtnClick:(id)sender {
    if ([self.delegate respondsToSelector:@selector(headViewMyOrderBtnEvent)]) {
        [self.delegate headViewMyOrderBtnEvent];
    }
}

//接单排名
- (IBAction)onRankingOrderBtnClick:(id)sender {
    if ([self.delegate respondsToSelector:@selector(headViewRankingOrderBtnEvent)]) {
        [self.delegate headViewRankingOrderBtnEvent];
    }
}

//好评排名
- (IBAction)onGoodsOrderBtnClick:(id)sender {
    if ([self.delegate respondsToSelector:@selector(headViewGoodsOrderBtnEvent)]) {
        [self.delegate headViewGoodsOrderBtnEvent];
    }
}

//我的差评
- (IBAction)onMyBadOrderBtnClick:(id)sender {
    if ([self.delegate respondsToSelector:@selector(headViewMyBadOrderBtnEvent)]) {
        [self.delegate headViewMyBadOrderBtnEvent];
    }
}


@end
